import {
	http
} from '../httpIndex.js'


export default {
	// 保存违纪巡查信息
	save(data) {
		return http.post(
			`app/violation/patrol/save`, data
		)
	},
	// 提交违纪巡查信息
	submit(id){
		return http.post(
			`app/violation/patrol/submit/`+id
		)
	},
	// 删除违纪巡查信息
	delete(id){
		return http.delete(
			`app/violation/patrol/`+id, null
		)
	},
	// 接受违纪巡查信息
	receiveStudents(data){
		return http.post('app/violation/patrol/students/receive',data)
	},
	// 回退违纪巡查信息
	goBackStudents(data){
		return http.post('app/violation/patrol/student/goBack',data)
	},
	// 待审批列表
	getViolationPatrolPageList(data) {
		return http.post(
			`app/violation/patrol/pageList`, data
		)
	},
	// 获取违纪巡查详情信息
	getViolationPatrolDetailInfo(id) {
		return http.get(
			`app/violation/patrol/getDetail/`+id
		)
	},
	// 获取违纪巡查接受信息
	getViolationPatrolReceiveInfos(violationPatrolId){
		return http.get(
			`app/violation/patrol/`+violationPatrolId+"/getViolationPatrolReceiveInfos"
		);
	},
	
	// 获取违纪巡查统计数据
	getViolationPatrolStatistics(data) {
		return http.post(
			`app/violation/patrol/getViolationPatrolStatistics`, data
		)
	},
	// 获取违纪巡查详情
	getViolationPatrolStatisticsDetail(data) {
		return http.post(
			`app/violation/patrol/getViolationPatrolStatisticsDetail`, data
		)
	},
}
